package com.space.generator;

import com.space.generator.biz.GeneratorBiz;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;


/**
 * Hello world!
 *
 */
@SpringBootApplication
@ComponentScan(basePackages={"com.space.generator"})
public class GeneratorToolsApplication
{
    public static void main(String[] args) {

        SpringApplication.run(GeneratorToolsApplication.class, args);


    }

    /**
     * 代码生成 不需要代码生成时可以注掉
     * @param generatorService
     * @return
     */
    @Bean
    public GeneratorBiz get(GeneratorBiz generatorService){
        generatorService.generateCode();
        return  null;
    }
}
